package nape.constraint;
import nape.phys.PhysObj;
import nape.geom.VecMath;
import nape.geom.Vec2;
import nape.constraint.SlideJoint;
import nape.util.FastMath;













class PinJoint extends SlideJoint {
	public function new (obj1:PhysObj,obj2:PhysObj,anchor1:Vec2,anchor2:Vec2) {
		super(obj1,obj2,anchor1,anchor2,0,0);
		
		vec_new(delta); vec_sub(anchor2.p,anchor1.p,delta);
		jointMin = jointMax = vec_length(delta);
	}
}